package main

//3Bmb9Jig8A5kHdDSxvDZ6eryj3AXd3swuJ


func main(){
	//测试
	//hash:=[]byte{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
	//
	//bytes58:=BLC.Base58Encode(hash)
	//
	//fmt.Printf("%s\n",bytes58)
	//fmt.Println("3Bmb9Jig8A5kHdDSxvDZ6eryj3AXd3swuJ")
	//
	//fmt.Printf("%x\n",BLC.Base58Decode(bytes58)[1:])

	//1.钱包(私钥，公钥)
	//2.公钥进行sha256
	//3.再进行ripemd160
	//4.version+hash160=>pubkey
	//5.pubkey进行hash
	//6.取最后4位
	//7.version+pubkey+4个字节->base58加密=>地址



}

//hash:=[]byte{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
////fmt.Println(len(hash))
////
//a:="hello world"
//byte58:=BLC.Base58Encode([]byte(a))
//fmt.Printf("%s\n",byte58)
//
//b:=BLC.Base58Decode(byte58)
//fmt.Printf("%s\n",b[1:])
//
//
//bytes := []byte("http://liyuechun.org")
//
//bytes58 := BLC.Base58Encode(bytes)
//
//fmt.Printf("%x\n",bytes58)
////12TQQJ2URa4LWVGUKRWw8MJvahxzJ
////1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
//
//fmt.Printf("%s\n",bytes58)
//
//bytesStr := BLC.Base58Decode(bytes58)
//
//fmt.Printf("%s\n",bytesStr[1:])